package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.ImportResource;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@ImportResource("classpath:provider.xml")  //加载xml文件
@EnableJpaRepositories(basePackages = "com.example.demo.dao")
public class SpringbootDubboServerApplication {
	public static void main(String[] args) throws InterruptedException {
		SpringApplication.run(SpringbootDubboServerApplication.class, args);
		Thread.sleep(Long.MAX_VALUE); //pom中没有加spring-boot-starter-web依赖，启动时没有tomcat容器，会自动退出，所以加了一个sleep防止自动退出
	}
}
